<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        var obj = {
            name:"小明",
            age:18
        }


        function printInfo(a,b) {
            console.log(this);
            console.log(this.name);
            console.log(this.age);
            console.log(a,b);
        }

        printInfo.call(obj,30,45);
        printInfo.apply(obj,[100,200]);
        printInfo.bind(obj)(300,400);


    </script>

</body>
</html>